﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test_detail_del.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Certificate.test_detail_del" %>
<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<body>
    <%
        int id = int.Parse(Request.QueryString["id"]);
        
        var get_ques = new TblQuestionController().FetchAll().Where(x=>x.QuestionTestDetail==id);
        foreach (TblQuestion ques in get_ques)
        {
            new TblQuestionController().Destroy(ques.QuestionId);
        }
        new TblTestDetailController().Destroy(id);
         %>
</body>
</html>
